<!--图书列表-->
<template>
  <div class="book_list" v-for="book in list" :key="book.id">
    <BookListItem :item="book" />
  </div>
</template>

<script>
import BookListItem from "@/components/BookListItem";
export default {
  name: "BookList",
  data() {
    return {};
  },
  props: {
    list: {
      Array,
      default: () => [],
    },
  },
  components: {
    BookListItem,
  },
};
</script>

<style>
.book_list {
  height: 100%;
  width: 100%;
}
</style>